class QqqjbxxesController < ApplicationController
  before_action :set_qqqjbxx, only: [:show, :edit, :update, :destroy]

  # GET /qqqjbxxes
  # GET /qqqjbxxes.json
  def index
    @qqqjbxxes = Qqqjbxx.all
  end

  # GET /qqqjbxxes/1
  # GET /qqqjbxxes/1.json
  def show
  end

  # GET /qqqjbxxes/new
  def new
    @qqqjbxx = Qqqjbxx.new
  end

  # GET /qqqjbxxes/1/edit
  def edit
  end

  # POST /qqqjbxxes
  # POST /qqqjbxxes.json
  def create
    @qqqjbxx = Qqqjbxx.new(qqqjbxx_params)

    respond_to do |format|
      if @qqqjbxx.save
        format.html { redirect_to @qqqjbxx, notice: 'Qqqjbxx was successfully created.' }
        format.json { render :show, status: :created, location: @qqqjbxx }
      else
        format.html { render :new }
        format.json { render json: @qqqjbxx.errors, status: :unprocessable_entity }
      end
    end
  end

  # PATCH/PUT /qqqjbxxes/1
  # PATCH/PUT /qqqjbxxes/1.json
  def update
    respond_to do |format|
      if @qqqjbxx.update(qqqjbxx_params)
        format.html { redirect_to @qqqjbxx, notice: 'Qqqjbxx was successfully updated.' }
        format.json { render :show, status: :ok, location: @qqqjbxx }
      else
        format.html { render :edit }
        format.json { render json: @qqqjbxx.errors, status: :unprocessable_entity }
      end
    end
  end

  # DELETE /qqqjbxxes/1
  # DELETE /qqqjbxxes/1.json
  def destroy
    @qqqjbxx.destroy
    respond_to do |format|
      format.html { redirect_to qqqjbxxes_url }
      format.json { head :no_content }
    end
  end

  private
    # Use callbacks to share common setup or constraints between actions.
    def set_qqqjbxx
      @qqqjbxx = Qqqjbxx.find(params[:id])
    end

    # Never trust parameters from the scary internet, only allow the white list through.
    def qqqjbxx_params
      params.require(:qqqjbxx).permit(:QHM, :CYS, :CJSJ, :QMC, :QLX, :QJJ, :SJCJDW, :SJCJDWDM, :BZ)
    end
end
